package com.xdja.https.oneway.user.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/")
public class UserController {
    @RequestMapping(value = "/user/get")
    @ResponseBody
    public Map<String, String> get() {
        Map<String, String> userMap = new HashMap<>();
        userMap.put("id", "1");
        userMap.put("name", "wjy");
        return userMap;
    }
}
